package com.xinxi11.project.qx.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.xinxi11.module.core.entity.RecordSupport;

/**
 * 人员_角色关联
 */
@Entity
@Table(name = "qxre_user_role")
public class QxreUserRole extends RecordSupport<String> implements java.io.Serializable {

	private static final long serialVersionUID = 8534931297220802907L;
	/** 角色ID **/
	private String roleId;
	/** 用户ID **/
	private Long userId;

	/** default constructor */
	public QxreUserRole() {
	}

	/** minimal constructor */
	public QxreUserRole(String id) {
		this.id = id;
	}

	@Id
	@Column(name = "id", unique = true, nullable = false, length = 50)
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	public String getId() {
		return this.id;
	}

	@Column(name = "roleId", length = 50)
	public String getRoleId() {
		return this.roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	@Column(name = "userId")
	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}
}